#ifndef __ARCBALL__HPP__
#define __ARCBALL__HPP__

#include "vector.cpp"
#include "modelTextured.hpp"

class arcball{
	public:
		modelTextured *m;
		vector<int> center;
		double radius;
		vector<double> start;
		bool inMove;
	public:
		arcball(modelTextured *modelTextured);
		arcball(vector<int> center, double radius, modelTextured *modelTextured);
		~arcball();
		void mousePressed(int x, int y);
		void mouseDragged(int x, int y);
		void mouseReleased(int x, int y);
		vector<double> mouse_to_sphere(int x, int y);
		vector<double> mouse_to_sphere2(int x, int y);
};
#endif
